home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 912 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.7 KB

  1. Subject: Re: Path length in GEM file selector
  2. Date: Thu, 20 Jan 1994 15:35:36 -0500 (EST)
  3. From: Chris Herborth <herborth@53iss6.waterloo.ncr.com>
  4. In-Reply-To: <9401201734.AA22794@asterix.uni-muenster.de> from "haebler@uni-muenster.de" at Jan 20, 94 06:34:14 pm
  5. Message-Id:  <9401201552.aw03720@ncrhub1.NCR.COM>
  6.  
  7. What you wrote:
  8. > Quite nice but how does the file selector know the length of the
  9. > space the program saved for the path??
  10. > Uli's idea with the cookie is really good. What about a cookie
  11. > _PTL <max length of path without the \0 at the end like strlen()>
  12. > Eric what do you think about this? Any comments or suggestions?
  13. > We should also install a cookie for the file name size:
  14. > _FTL <max length of file name without \0>>
  15.  
  16. Are these system-wide cookies to be maintained by the fileselector, an XFS,
  17. MiNT, Robin Hood & Friar Tuck?
  18.  
  19. It's a pity the fileselector didn't malloc() enough space for you, and you'd
  20. just pass it a pointer instead of an array (or a pointer to an array or a
  21. pointer to a malloc'd chunk).  Then, like other calls that do this sort of
  22. thing, you'd have to copy the path out of the space the fileselector
  23. malloc'd (unless you didn't mind losing it the next time someone did an
  24. fsel_input()...).  That would seem to make much more sense than having to
  25. look at cookies and whatnot (that's how the DTA works for Fsfirst() and
  26. Fsnext() calls as well as several MiNTlib calls that I can't remember
  27. right now becaus I'm at work and not at home with my manual...).
  28.  
  29. -- 
  30. ----------============_   /\ ========================================----------
  31. Chris Herborth        \`o.0'                   herborth@53iss6.Waterloo.NCR.COM
  32. Information Products  =(___)=
  33. NCR ISD Waterloo         U
  34.